export const statisticsDict = {
  All: "全部",
  CustomerStatistic: "客户统计",
  CustomerWarning: "无单报警",
  Finish_Day: "本日入库",
  Finish_Month: "本月入库",
  Mark: "异常统计",
  Material: "材料",
  MaterialOverTime: "超时材料单",
  NewProduce_Day: "本日下单",
  NewProduce_Month: "本月下单",
  New_Day: "本日接单",
  New_Month: "本月接单",
  OutOfStock_Day: "本日发货",
  OutOfStock_Month: "本月发货",
  OutTime: "超时单",
  Post: "车间日报",
  Produce_None: "未下单",
  Remark: "备注",
  Stock: "全部库存",
  Stock_UnFinish: "库存待完成",
  TOrderFinish_Day: "今日订单剩余数",
  TOrderFinish_Month: "本月订单剩余数",
  TOrderNew_Day: "今日下单",
  TOrderNew_Month: "本月下单",
  TOrder_Delivery: "出库订单数",
  TOrder_DeliveryTail: "出库尾数",
  TOrder_Tail: "订单尾数",
  TOrder_UnDelivery: "未出库订单",
  UnFinish: "流程跟踪/未完成单",
  Urgent: "加急单",
};
export const manageOrdersDict = {
  product: "产品",
  childCustomer: "子客户",
  craftThickness: "工艺厚度",
  craftName: "工艺名称",
  totalHeight: "门体总高",
  totalWidth: "门体总宽",
  majorHeight: "主门高度",
  wallThickness: "墙体厚度",
  orientation: "开向",
  edgeName: "包边名称",
  flowerEdgeName: "花边名称",
  majorOutStyle: "主外款式",
  majorInStyle: "主内款式",
  viceOutStyle: "副外款式",
  viceInStyle: "副内款式",
  childOutStyle: "子外款式",
};
const abbrStatDicts = {
  All: "全",
  CustomerStatistic: "客",
  CustomerWarning: "无",
  Finish_Day: "入",
  Finish_Month: "入",
  Mark: "异",
  Material: "材",
  MaterialOverTime: "超材",
  NewProduce_Day: "下",
  NewProduce_Month: "下",
  New_Day: "接",
  New_Month: "接",
  OutOfStock_Day: "发",
  OutOfStock_Month: "发",
  OutTime: "超",
  Post: "车日",
  Produce_None: "未",
  Remark: "备",
  Stock: "库",
};
export const publicKeyList = [
  {
    username: "aidelemy",
    publicKey: "21dd3cea-0dc5-4e0e-9e8c-8036224333dd",
  },
  {
    username: "stm",
    publicKey: "38330151-73ee-4dd2-a45b-eaf785181de4",
  },
];
export function zhKey(key) {
  let value = Object.entries(statisticsDict).find((item) => item[0] == key);
  return value ? value[1] : "未知属性";
}
export function zhMOKey(key) {
  let value = Object.entries(manageOrdersDict).find((item) => item[0] == key);
  return value ? value[1] : "未知属性";
}
export function zhKeyAddr(key) {
  let value = Object.entries(abbrStatDicts).find((item) => item[0] == key);
  return value ? value[1] : null;
}
